#coding:utf-8
from django.utils.translation import ugettext as _
from django.http import HttpResponse
from django.core.mail import send_mail
def hello(request):
    return HttpResponse(_('hello World!'))
def mail(request):
    for d in  range(50):
        send_mail(
            '恩，炸你邮箱来了',
            '红红火火恍恍惚惚',
            '506535141@qq.com',
            ['944138873@qq.com'],
            fail_silently=False
        )

    return HttpResponse('发送成功')